﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChessBoard
{
    public static class ClockDigit
    {
        private static readonly List<string[]> ClockDigits = new List<string[]>
        {
            new string[]
            {
                "╔═╗",
			    "║ ║",
			    "╚═╝"
            },

            new string[]
            {
                " ╖ ",
			    " ║ ",
			    " ╨ "
            },

            new string[]
            {
                "╔═╗",
			    "╔═╝",
			    "╚═╝"
            },

            new string[]
            {
                "╔═╗",
			    " ═╣",
			    "╚═╝"
            },

            new string[]
            {
                "╥ ╥",
			    "╚═╣",
			    "  ╨"
            },

            new string[]
            {
                "╔═╗",
			    "╚═╗",
			    "╚═╝"
            },

            new string[]
            {
                "╔═╗",
			    "╠═╗",
			    "╚═╝"
            },

            new string[]
            {
                "╔═╗",
			    "  ║",
			    "  ╨"
            },

            new string[]
            {
                "╔═╗",
			    "╠═╣",
			    "╚═╝"
            },

            new string[]
            {
                "╔═╗",
			    "╚═╣",
			    "╚═╝"
            }
        };



        public static void Draw(int digit, int x, int y)
        {
            Console.SetCursorPosition(x, y);

            for (int row = 0; row < ClockDigits[digit].Length; row++)
            {
                Console.CursorLeft = x;
                Console.WriteLine(ClockDigits[digit][row]);
            }
        }
    }
}
